package sctu.edu.java.year2016.team08.zengshenjing.day20160524.chapter7_2;

    /**
     * Created by Administrator on 2016/6/2.
     * 尝试编写一个矩形类，将长与宽作为矩形类的属性，在构造方法中将长、宽初始化，定义一个成员方法求矩形的面积
     */
    public class Work2 {

        public int lon;
        public int wide;

        public Work2(int lon,int wide){
            this.lon=lon;
            this.wide=wide;

        }
        public void product(){
            System.out.println(lon*wide);


        }
    }

